import Vue from 'vue'
import moment from 'moment'

export default {
  async list (data) {
    return Vue.http.post('./gxActivityNumplate/getNumplateList', data)
  },

  // 接受
  async receive (data) {
    let params = Object.assign({}, data)
    params.pkActNumplateLs = params.pkActNumplateLs.map((item) => {
      return item.pkActNumplate
    })
    params.receiveTime = moment(params.receiveTime).format('YYYY-MM-DD HH:mm:ss')
    return Vue.http.post('./gxActivityNumplate/receive', params)
  }
}
